import request from "@/utils/request";
// import { updateStorage } from "@/utils";
// import { turn } from "core-js/core/array";
export default {
  // namespaced: true,

  state: {
    ret: {}
  },
  getters: {},
  mutations: {
    transfer(state,payload){
      state.ret=payload
      // console.log(state.ret);
    }
  },
  actions: {
    async render(context) {
      await request
        .post("/order/selectall", {
          page: 1,
          size: 20,
        })
        .then((res) => {
          // console.log(res.data.ret);
          console.log(res);
          context.commit('transfer',res.data.ret)
        });
    },
    //点击发货的时候改变状态
  },
};
